home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / lastserver < prev    next >
Text File  |  2001-03-21  |  714b  |  29 lines

  1. Synopsis:
  2.    $lastserver()
  3.  
  4. Technical:
  5.    This function shows the name of the last server to send you a message of
  6.    any kind.  It only has an effect inside hooks.
  7.  
  8. Practical:
  9.    This function shows the name of the server sending the current message.
  10.    Like $userhost(), it s only useful inside hooks.  It might be used to
  11.    indicate when a message is no coming from the current server.
  12.  
  13. Returns:
  14.    server name
  15.  
  16. Examples:
  17.    To indicate that a remote server is sending the NAMES reply:
  18.       on ^names "*" {
  19.          if ( lastserver() == S ) {
  20.             echo *** On $0: $1- \(from $lastserver()\)
  21.          } {
  22.             echo *** On $0: $1-
  23.          }
  24.       }
  25.  
  26. See Also:
  27.    userhost(6)
  28.  
  29.